package com.neouton.feginClient;

import com.alibaba.fastjson.JSONObject;
import com.neouton.crm.entity.NoticVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(url = "${message.server}", name = "messageUrl")
public interface FeginMessageService {

    /**
     *
     * @param token
     * @param notic
     * @return
     */
    @PostMapping("sysNotic/pushNotic")
    JSONObject  pushNoticToDB(@RequestHeader String token, @RequestBody NoticVo notic);

}
